import sys
sys.path.append("..//")

import RadarCameraDetction.Radar as Radar
import multiprocessing

# 生产者进程
def OpenRadar():
    Radar.init()
    ser, error = Radar.Open(9600)
    assert ser != None
    while True:
        RadarTarget = Radar.GetData(ser)
        print(RadarTarget)

def main():
    p1 = multiprocessing.Process(target=OpenRadar,args=())
    p1.start()


if __name__ == '__main__':
    main()






